/*
 * @Author: zhangwenqiang
 * @Date: 2021-07-26 16:06:24
 * @LastEditors: OBKoro1
 * @LastEditTime: 2021-07-27 10:47:59
 * @FilePath: /operate/src/router/index.js
 */
// import Vue from 'vue'
// import Router from 'vue-router'
import login from './modules/login.js'
import mainPage from './modules/mainPage.js'
const Router = window.VueRouter
let redirect = {
  path: '/',
  redirect: '/login'
}
const RouterModel = new Router({
  mode: '',
  base: '', // 当后台路由有这个时候就要加上
  routes: [login, mainPage, redirect],

})

// RouterModel.beforeEach((to, from, next) => {
//   // 这个位置做一些关于传参，重定向等事情

//   next()
// })

export default RouterModel
